package com.az.shiro.ice.service.impl;

import com.az.shiro.ice.dao.PermissionDao;
import com.az.shiro.ice.dao.impl.PermissionDaoImpl;
import com.az.shiro.ice.domain.Permission;
import com.az.shiro.ice.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("permissionService")
public class PermissionServiceImpl implements PermissionService {

    private PermissionDao permissionDao;

    public void setPermissionDao(PermissionDao permissionDao) {
        this.permissionDao = permissionDao;
    }

    public Permission createPermission(Permission permission) {
        return permissionDao.createPermission(permission);
    }

    public void deletePermission(Long permissionId) {
        permissionDao.deletePermission(permissionId);
    }
}
